import styles from './index.module.scss'
import classNames from 'classnames'
export default function Input({ extra, onExtraClick, className, ...rest }) {
  return (
    <div className={styles.root}>
      <input className={classNames('input', className)} {...rest}></input>
      {extra && (
        <span onClick={onExtraClick} className="extra">
          {extra}
        </span>
      )}
    </div>
  )
}
